Skip to main content

Build Data Models

Tier0 uses UNS (Unified Namespace) to organize data into a clear tree structure. Each path and topic in the model automatically generates an MQTT topic, making it easy to get real-time data.

Additional Parameter Definition

  • Path-Additional Settings
ItemDescription
Extended AttributeAdd extended attributes for the path. Eg. unit.
TemplateSelect a template to inherit attributes from it. See Building Template.
Generate TemplateClick icon to add an attribute to the path, at the same time you can select to generate a same template for future use.
  • Topic-Topic Type
TypeDescription
StateWorks as an API to receive system state data.
ActionWorks as an API to execute CRUD commands.
MetricReal-time data. For example, equipment temperature.
  • Topic-Attribute Generation Method
Attribute Generation MethodDescription
Pre-definedCustomize attributes.
TemplateInherit attributes from the selected template.
Auto-ParsedUse JSON text to generate attributes with the same structure.
  • Topic-Linked Operation
ItemDescription
Enable HistoryEnable historical data storage for the topic.

How to Build a Data Model

Based on simple folder-file structure, you can define the data hierarchy to a tree map.

Building Models Manually

note

factory/equipment/CNC will be used as an example, in which factory and equipment are paths and CNC is a topic.

  1. Log in to Tier0, landed on the Namespace page.
  2. Under Topic, click > New Path to add a path (e.g. factory).
  1. Enter the path information, set the alias as needed, and then click Save.

  2. Select equipment, and then click > New Topic to add a topic (e.g.CNC) under it.

  1. Enter the information of the topic, and then click Save.

Importing Models

  1. Log in to Tier0, landed on the Namespace page.
  2. Click Import at the upper-right corner.
  1. Import JSON to create models.
  • Click UNS, and directly enter JSON.
  • Click Download Template at the UNS tab, enter the model content and upload it at the All tab.
tip

You can manually add a path and topic, export it and use it as an example for import.

  1. Click Save.

Optional Features

Building Template

  1. On the Namespace page, click Template.
  2. Click , and then enter the information of the template.
tip

Click Source to select added models and inherit their attributes.

  1. Click Save.

Creating Label

Labels are used for categorizing data models.

  1. On the Namespace page, click Label.
  2. Click , and then enter the label name.
  3. Click Save, and then click to add topics under the label.
  1. Click Save.

Exporting Data

Tier0 can export UNS models and other data, such as source flows, event flows, and data dashboards.

  1. On the Namespace page, click Export at the upper-right corner.
  2. Click the Others tab and select the corresponding data type.
  1. Click Export.